import request from '@/utils/request'

//获取首页数据
export const getHomeInfos = () =>{
    return request<any,any>({
        url:'/api/tab/1'
    })
}

//获取秒杀商品数据
export const getSeckillGoods = () =>{
    return request<any,any>({
        url:'/api/home/spike'
    })
}

//获取分类信息
export const getClassify = () =>{
    return request<any,any>({
        url:'/api/tabs'
    })
}

//根据分类id获取分类商品信息
export const getGoodsByClassifyId = (id:number | string) =>{
    return request<any,any>({
       url:`/api/tab/${id}`
    })
}
